// page/order/details.js
Page({
  data: {
        isHide: false,
        info:[],
        // name: "楼小楼",
        // province: "福建",
        // city:"厦门市",
        // area: "思明区",
        // phone: "18000000000",
        // address: "观音山商务区",
        // note: "",
        // card: "",
        // date: "",
        // time: "",
        goods:[],
        // productName: "鲜花",
        // productPrice: "123",
        // productNumber: "1"
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
        var that = this
        var order_sn = options.sn
        var app = getApp()
        var uid = wx.getStorageSync('uid');
        // console.log(order_sn)
        wx.request({
          url: app.globalData.host + '&g=App&m=Order&a=details', //仅为示例，并非真实的接口地址
          data: { uid: uid, order_sn: order_sn},
          header: {
            'content-type': 'application/json'
          },
          success: function (res) {

           
            that.setData({
              info: res.data.i,
            goods: res.data.g,
              isHide: true
            })

          }
        })
     
  }
})